package com.m.ioc.facade;

public class FacadePattern {
    private HallLight hallLight = new HallLight();
    private LivingLight livingLight = new LivingLight();
    private DiningLight diningLight = new DiningLight();

    public void lightOn(){
        hallLight.on();
        livingLight.on();
        diningLight.on();
    }

    public void lightOff(){
        hallLight.off();
        livingLight.off();
        diningLight.off();
    }
}
